/*
 * Students:
 * Massimiliano Rango - 610826
 * Martina Benedetto - 610962
 * 
 * A.A 2011/2012
 * 
 */ 

/**
 *
 * This class represents a control message. In other words a ControlMessage 
 * is a message which has been forwarded by a node. It has a destination, which
 * represents the point where the message must arrive.
 * 
 * @version 1.0 27 Dec 2011
 * @author Massimiliano Rango
 *
 */
public class ControlMessage extends Message {
	private Position m_destination;
	
	/**
	 * Creates a new ControlMessage
	 * @param id ID of the node which created the message.
	 * @param departure Position of the node which created the message. 
	 * @param destination Position where the message must arrive.
	 */
	public ControlMessage(int id, Position departure, Position destination){
		super(id, departure);
		m_destination = destination;
	}
	
	public Position getDestination() {
		return m_destination;
	}

}
